﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace blackhouse.BlackApart.Business.ApartmentServices {
    public struct ReservationAdditionalServiceUnit {

        public DateTime Date;
        public int Quantity;
        public double UnitPrice;
        public int ApartmentId;

        public override bool Equals(object ob) {
            if (ob is ReservationAdditionalServiceUnit) {
                ReservationAdditionalServiceUnit c = (ReservationAdditionalServiceUnit)ob;
                return Date == c.Date;
            }
            else {
                return false;
            }
        }

        public override int GetHashCode() {
            return Date.GetHashCode();
        }

    }
}
